package edu.sdbi.judge.mapper;

import edu.sdbi.judge.domain.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DailyVisitsMapper {
    News getByNewsID(@Param("newsId") String newsID);

    News getByStartDate(@Param("startDate") String startDate);

    News getByEndDate(@Param("EndDate") String endDate);
    //Data_Analysis getDailyVisitsByRange(@Param("DailyVisitsByRange") String dailyVisitsByRange);

    Integer getDailyVisitsByRange(
            @Param("startDate") String startDate,
            @Param("endDate") String endDate);
}
